<?php


namespace app\common\validate;
use think\Validate;

class Config extends Validate
{
    protected $rule=[
        'award0|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award1|金额' => 'require|regex:/^[1-9][0-9]*$/',
         'award2|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award3|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award4|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award5|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award6|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'award7|金额' => 'require|regex:/^[1-9][0-9]*$/',
    ];
    protected $message=[
        'award0.require'             =>  '金额必须填写',
        'award0.regex'               =>'金额必须为正整数',
        'award1.require'             =>  '金额必须填写',
        'award1.regex'               =>'金额必须为正整数',
        'award2.require'               =>  '金额必须填写',
        'award2.regex'               =>'金额必须为正整数',
        'award3.require'              =>  '金额必须填写',
        'award3.regex'               =>'金额必须为正整数',
        'award4.require'            =>  '金额必须填写',
        'award4.regex'               =>'金额必须为正整数',
        'award5.require'            =>  '金额必须填写',
        'award5.regex'               =>'金额必须为正整数',
        'award6.require'             =>  '金额必须填写',
        'award6.regex'               =>'金额必须为正整数',
        'award7.require'             =>  '金额必须填写',
        'award7.regex'               =>'金额必须为正整数',
    ];

}